<!--社保查询-->
<template>
  <default-layout>
    <header-back text="社保查询" slot="header"></header-back>
    <loading-text v-if="loading" slot="main"></loading-text>
    <div class="form-list" slot="main" v-if="!loading">
      <div class="form-list-item">
        <span class="label">姓名</span>
        <span class="content">{{list.aac003 || '--'}}</span>
      </div>
      <div class="form-list-item">
        <span class="label">身份证号</span>
        <span class="content">{{list.aac002 || '--'}}</span>
      </div>
      <div class="form-list-item">
        <span class="label">档案号</span>
        <span class="content">{{list.archiveCode || '--'}}</span>
      </div>
      <div class="form-list-item">
        <span class="label">参加工作时间</span>
        <span class="content">{{list.expStartJobDate || '--'}}</span>
      </div>
      <div class="form-list-item">
        <span class="label">参加养老时间</span>
        <span class="content">{{list.expPensionDate || '--'}}</span>
      </div>
      <div class="form-list-item">
        <span class="label">医保参加时间</span>
        <span class="content">{{list.expMedicalDate || '--'}}</span>
      </div>
      <div class="form-list-item">
        <span class="label">省医疗状态</span>
        <span class="content">{{list.mediInsurStatusName || '--'}}</span>
      </div>
      <div class="form-list-item">
        <span class="label">市养老状态</span>
        <span class="content">{{list.cityProvideName || '--'}}</span>
      </div>
      <div class="form-list-item">
        <span class="label">市医疗状态</span>
        <span class="content">{{list.cityMedicalName || '--'}}</span>
      </div>
      <div class="form-list-item">
        <span class="label">省医疗保险月缴费基数</span>
        <span class="content">{{list.monthFee || '--'}}</span>
      </div>
      <div class="form-list-item">
        <span class="label">市养老保险月缴费基数</span>
        <span class="content">{{list.pensionBase || '--'}}</span>
      </div>
      <div class="form-list-item">
        <span class="label">市医疗保险月缴费基数</span>
        <span class="content">{{list.medicalBaseName || '--'}}</span>
      </div>
    </div>
  </default-layout>
</template>
<script>
  import HeaderBack from '../../../components/header-back/header-back.vue'
  import DefaultLayout from '../../../layouts/default-layout/default-layout'
  import {http} from '../../../common/js/util'
  import LoadingText from '../../../components/loading-text/loading-text'
  export default {
    components: {LoadingText, DefaultLayout, HeaderBack},
    data() {
      return {
        list: {},
        loading: true
      }
    },
    methods: {
      getInfo() {
        http({
          method: 'post',
          url: '/admin/person/sapi/socialsecurity/status/get/all',
          data: {}
        }, loading => { this.loading = loading }).then(res => {
          this.list = res.data
        })
      }
    },
    mounted () {
      this.getInfo()
    }
  }
</script>
<style lang="scss" scoped>
  @import "../../../common/style/variable";
</style>
